

#ifndef __PIO_MDIO_H_
#define __PIO_MDIO_H_


int mdio_intf_init( uint mck, uint mio, uint32_t freq );

int mdio_address( uint8_t phyadr, uint8_t devtyp, uint16_t addr );
int mdio_write( uint8_t phyadr, uint8_t devtyp, uint16_t data );
int mdio_read( uint8_t phyadr, uint8_t devtyp, uint32_t * pdat );
int mdio_postrd( uint8_t phyadr, uint8_t devtyp, uint32_t * pdat );

#endif

